{% load ham %}
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">    
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<base href="http://tharkang.hopto.org:2580/"/>
		<link rel="Stylesheet" href="files/standard.css" type="text/css" title="Standardowy"/>
	</head>
	<body xml:lang="pl">
		<div id="all">
		<div class="leftMenu">
			User
			<ul>
			{% if user.is_anonymous%}
			<li>
				<a href="{%href "django.contrib.auth.views.login"%}">Login</a>
			</li>
			<li>
				<a href="{%href "util.registration.register"%}">Register</a>
			</li>
			{%else%}
			<li>
				<a href="{%href "django.contrib.auth.views.logout"%}">Logout</a>
			</li>
			</ul>
			{%endif%}
		</div>
		{%if ham_menus%}{%for menu in ham_menus%}
		<div class="leftMenu">
				{%if menu.name.href%}<a href="{{menu.name.href}}" {%if menu.name.title%}title="{{menu.name.title}}"{%endif%}>{%endif%}
				{{menu.name.text}}
				{%if menu.name.href%}</a>{%endif%}
			<ul>
			{%for sub in menu.subs%}
			<li>
				{%if sub.name.href%}<a href="{{sub.name.href}}" {%if sub.name.title%}title="{{sub.name.title}}"{%endif%}>{%endif%}
				{{sub.name.text}}
				{%if sub.name.href%}</a>{%endif%}
			</li>
			<ul>
				{%for item in sub.items%}
				<li>
					{%if item.href%}<a href="{{item.href}}" {%if item.title%}title="{{item.title}}"{%endif%}>{%endif%}
					{{item.text}}
					{%if item.href%}</a>{%endif%}
				</li>
				{%endfor%}
				</ul>

			{%endfor%}
			</ul>
		</div>
		{%endfor%}{%endif%}


		<div id="content">
		{%block content%}
		{%endblock%}
		</div>
		<div id="footer">Istnienie serwisu umożliwia firma <a href="http://complex.com.pl/">Complex Computers</a> - dziękujemy!</div>
		</div>
	</body>
</html>
